package com.unicom.scg.scancodego.service.impl;

import com.unicom.scg.scancodego.entity.TProduct;
import com.unicom.scg.scancodego.entity.TProductExample;
import com.unicom.scg.scancodego.entity.TStaff;
import com.unicom.scg.scancodego.entity.TStaffExample;
import com.unicom.scg.scancodego.mapper.TProductMapper;
import com.unicom.scg.scancodego.mapper.TStaffMapper;
import com.unicom.scg.scancodego.service.TproductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liyy22
 * @version 1.0
 * @date 2019/11/2 11:35
 */
@Service
public class TproductServiceimpl implements TproductService {
    @Autowired
    TProductMapper tProductMapper;
    @Override
    public List<TProduct> getAllProduct() {

        TProductExample tProductExample = new TProductExample();
        //example.createCriteria().andPositionEqualTo();
        List<TProduct> tProducts = tProductMapper.selectByExample(tProductExample);
        return tProducts;
    }
}
